import { getDjDetailHttp } from "../../../request/API.JS";

export const useDetailHook = () => {
    let program = ref({})
    const $route = useRoute();
    onMounted(async () => {
        let { id } = $route.query;
        let result = await getDjDetailHttp(id);
        program.value = result.program;
    })
    return {
        program
    }
}